/**
 * @Author: Bobby
 * @Date: 2022-02-22 15:33:52
 * @LastEditTime: 2022-03-01 10:18:09
 * @LastEditors: Bobby
 * @Description:
 * @FilePath: \wms-v2\src\ve\common\components\baseComs\form\uiDropdown.js
 * @CIMC-V2
 */
import { exInput, exExpandTriggerSelect, exSwitch, exIcon } from '@ve/common/components/extension'
export default {
  VERSION: '20220408',
  type: 'uiDropdown',
  name: '下拉菜单',
  icon: 'arrow-drop-down-line',
  svg: 'xialacaidan',
  //数据别名
  // dataName: 'uiDropdown_data',
  //扩展
  extension: {
    model: exInput('Model', 'dropdown_name'),
    btnName: exInput('下拉名称', '下拉菜单'),
    trigger: exExpandTriggerSelect('触发方式', 'click'),
    icon: exIcon('图标选择器', ''),
    padding: {
      type: 'exInputNumber',
      name: '内边距',
      value: 1,
      min: 0,
      max: 12,
    },
    plain: exSwitch('朴素按钮', false),
    round: exSwitch('圆角', false),
    circle: exSwitch('圆形', false),
    dropdownOption: {
      type: 'exDropdownOption',
      name: '下拉选项',
      value: [
        {
          label: 'Action 1',
          name: '0',
          value: '0',
          disabled: false,
          actions: [],
          icon: {
            type: 'exIcon',
            name: 'name',
            value: '',
          },
        },
        {
          label: 'Action 2',
          name: '1',
          value: '1',
          disabled: false,
          actions: [],
          icon: {
            type: 'exIcon',
            name: 'name',
            value: '',
          },
        },
        {
          label: 'Action 3',
          name: '2',
          value: '2',
          disabled: true,
          divided: true,
          actions: [],
          icon: {
            type: 'exIcon',
            name: 'name',
            value: '',
          },
        },
        {
          label: 'Action 4',
          name: '3',
          value: '3',
          disabled: false,
          actions: [],
          icon: {
            type: 'exIcon',
            name: 'name',
            value: '',
          },
        },
        {
          label: 'Action 5',
          name: '4',
          value: '4',
          disabled: false,
          actions: [],
          icon: {
            type: 'exIcon',
            name: 'name',
            value: '',
          },
        },
      ],
    },
    disabled: exSwitch('禁用', false),
    hidden: exSwitch('隐藏', false),
  },
  //交互
  interaction: [],
  //条件、逻辑指令
  logicInstruction: [],
}
